import request from '@/utils/request';

/**
 *  获取店铺卡券列表（优惠券、电子票券、储值卡）
 */
export function getTicketList(data) {
	return request({
		url: '/api/order/getStoreCouponList',
		method: 'POST',
		data,
	});
}

/**
 *  获取包厢类型
 */
export function getRoomList(data) {
	return request({
		url: '/business/shop/getRoomtype',
		method: 'get',
		data,
	});
}

/**
 *  获取包厢类型
 */
export function getCouponList(data) {
	return request({
		url: '/api/order/getStoreCouponList',
		method: 'get',
		data,
	});
}

/**
 *  获取店铺详情信息
 */
export function getstoreDetails(data) {
	return request({
		url: '/api/index/getstoreDetails',
		method: 'get',
		data,
	});
}

/**
 *  获取店铺详情信息
 */
export function getRoomDetails(data) {
	return request({
		url: '/api/order/getRoomInfo',
		method: 'get',
		data,
	});
}

// 獲取當前店鋪的優惠券
export function getUserCoupon(data){
	return request({
		url:'/api/user/getUserCoupon',
		method:'GET',
		data
	})
}
